package com.xsoft.sms.cmpp20.message.factory;

import com.xsoft.sms.cmpp20.message.impl.CMPP20Message;
import com.xsoft.sms.cmpp20.message.impl.CMPP20MessageConnectReq;
import com.xsoft.sms.cmpp20.message.impl.CMPP20MessageConnectResp;

/**
 * package: {PACKAGE_NAME}
 * User: zhanglm
 * Date: 12-9-21
 * Time: 上午11:37
 * Description:
 */
public class CMPP20MessageFactory {
	public static CMPP20Message newCmpp20Message(int cmdId) {
		CMPP20Message msg = null;
		switch (cmdId) {
			case CMPP20Message.CMPP20_CONNECT:
				msg = new CMPP20MessageConnectReq();
				break;
			case CMPP20Message.CMPP20_CONNECT_RESP:
				msg = new CMPP20MessageConnectResp();
				break;
			default:
				break;
		}
		return msg;
	}
}
